﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Domain.W
{
    /// <summary>
    /// 单位管理
    /// </summary>
    public class WorkUnitModel
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        [Required(ErrorMessage = "单位名称不能为空")]
        [MaxLength(30, ErrorMessage = "单位名称长度不能超过30字符")]
        public string UnitName { get; set; }
        /// <summary>
        /// 单位编码
        /// </summary>
        [Required(ErrorMessage = "单位编码不能为空")]
        [MaxLength(30, ErrorMessage = "单位编码长度不能超过30字符")]
        public string UnitCode { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Required(ErrorMessage = "排序不能为空")]
        [MaxLength(30, ErrorMessage = "排序长度不能超过30字符")]
        public string Sort { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        [MaxLength(30, ErrorMessage = "状态长度不能超过30字符")]
        public string Status { get; set; }

    }
}
